package vip.george.stock.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author george
 * @since 2023/7/3
 * <p>测试的controller</p>
 */
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {


    @Value("${server.port}")
    private String port;


    @GetMapping("/reduce")
    public String reduce(){
        log.info("减一");
        return "reduce success:" + port;
    }
}
